package com.tian.excel.utils;

import com.github.houbb.sensitive.word.core.SensitiveWordHelper;

/**
 * @author: Tian
 * @version: 1.0
 * @since: 1.0
 * @date: 2024/8/6/14:17
 */
public class SensitiveWordUtil {

    public static String checkReplace(String text){

        boolean contains = SensitiveWordHelper.contains(text);
        if (contains){
            return SensitiveWordHelper.replace(text);
        }

        return text;

    }
}
